package org.jeecg.modules.quality.vo;

import java.util.List;
import lombok.Data;
import org.jeecg.modules.quality.entity.BussInspectionFormDetail;
import org.jeecg.modules.quality.entity.BussInspectionFormStorage;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 检验单
 * @Author: jeecg-boot
 * @Date:   2024-07-09
 * @Version: V1.0
 */
@Data
@ApiModel(value="buss_inspection_formPage对象", description="检验单")
public class BussInspectionFormPage {

	/**主键*/
	@ApiModelProperty(value = "主键")
    private String id;
	/**编号*/
	@Excel(name = "编号", width = 15)
	@ApiModelProperty(value = "编号")
    private String code;
	/**检验标准*/
	@Excel(name = "检验标准", width = 15, dictTable = "buss_inspection_standards", dicText = "name", dicCode = "id")
    @Dict(dictTable = "buss_inspection_standards", dicText = "name", dicCode = "id")
	@ApiModelProperty(value = "检验标准")
    private String standardsId;
	/**检验类型*/
	@Excel(name = "检验类型", width = 15, dicCode = "inspection_type")
	@Dict(dicCode = "inspection_type")
	@ApiModelProperty(value = "检验类型")
	private java.lang.String inspectionType;
	/**入库单*/
	@Excel(name = "入库单", width = 15, dictTable = "buss_storage_notice", dicText = "code", dicCode = "id")
    @Dict(dictTable = "buss_storage", dicText = "code", dicCode = "id")
	@ApiModelProperty(value = "入库单")
    private String storageId;
	/**物料名称*/
	@Excel(name = "物料", width = 15)
	@ApiModelProperty(value = "物料")
    private String materialId;
	/**供应商*/
	@Excel(name = "供应商", width = 15)
	@ApiModelProperty(value = "供应商")
    private String supplierId;
	/**进厂日期*/
	@Excel(name = "进厂日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "进厂日期")
    private Date enterDate;
	/**检验日期*/
	@Excel(name = "检验日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "检验日期")
    private Date inspectionDate;
	/**检验员*/
	@Excel(name = "检验员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@ApiModelProperty(value = "检验员")
    private String inspector;
	/**检验结果*/
	@Excel(name = "检验结果", width = 15, dicCode = "inspection_results")
    @Dict(dicCode = "inspection_results")
	@ApiModelProperty(value = "检验结果")
    private String inspectionResults;
	/**抽检数量*/
	@Excel(name = "抽检数量", width = 15)
	@ApiModelProperty(value = "抽检数量")
    private java.math.BigDecimal samplingQuantity;
	/**单位*/
	@Excel(name = "单位", width = 15, dicCode = "ji_unit")
    @Dict(dicCode = "ji_unit")
	@ApiModelProperty(value = "单位")
    private String unit;
	/**批量(吨)*/
	@Excel(name = "批量(吨)", width = 15)
	@ApiModelProperty(value = "批量(吨)")
    private java.math.BigDecimal batch;
	/**检验结论*/
	@Excel(name = "检验结论", width = 15)
	@ApiModelProperty(value = "检验结论")
    private String inspectionConclusion;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
    private String remark;
	/**备用*/
	@Excel(name = "备用", width = 15)
	@ApiModelProperty(value = "备用")
    private String spare;
	/**物料来源*/
	@Excel(name = "物料来源", width = 15)
	@ApiModelProperty(value = "物料来源")
	private java.lang.String materialSource;
	/**限用日期*/
	@Excel(name = "限用日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "限用日期")
	private java.util.Date expiryDate;
	/**生产日期*/
	@Excel(name = "生产日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "生产日期")
	private java.util.Date createDate;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15)
	@ApiModelProperty(value = "客户名称")
	private java.lang.String customerName;
	/**批次号*/
	@Excel(name = "批次号", width = 15)
	@ApiModelProperty(value = "批次号")
	private java.lang.String batchNum;
	/**物料批号*/
	@Excel(name = "物料批号", width = 15)
	@ApiModelProperty(value = "物料批号")
	private java.lang.String materialLotNum;
	/**宝洁采购订单号*/
	@Excel(name = "宝洁采购订单号", width = 15)
	@ApiModelProperty(value = "宝洁采购订单号")
	private java.lang.String bjOrder;
	/**宝洁供应商编码*/
	@Excel(name = "宝洁供应商编码", width = 15)
	@ApiModelProperty(value = "宝洁供应商编码")
	private java.lang.String bjSupplierCode;
	/**宝洁供应商*/
	@Excel(name = "宝洁供应商", width = 15)
	@ApiModelProperty(value = "宝洁供应商")
	private java.lang.String bjSupplier;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

	@ExcelCollection(name="检验单关联入库明细")
	@ApiModelProperty(value = "检验单关联入库明细")
	private List<BussInspectionFormStorageVo> bussInspectionFormStorageList;
	@ExcelCollection(name="质检明细")
	@ApiModelProperty(value = "质检明细")
	private List<BussInspectionFormDetailVo> bussInspectionFormDetailList;
	@ApiModelProperty(value = "部门名称")
	private String deptName;
	@ApiModelProperty(value = "制单人")
	private String createByName;
	@ApiModelProperty(value = "物料名称")
	private String materialName;
	@ApiModelProperty(value = "供应商名称")
	private String supplierName;

	/**入库单*/
	@ApiModelProperty(value = "入库单编号")
	private String storageCode;
	/**选中的入库单明细*/
	private String storageDetailIds;
	/**状态*/
	@Excel(name = "状态", width = 15)
	@ApiModelProperty(value = "状态")
	private String status;
	@ApiModelProperty(value = "版本号")
	private Integer version;
}
